package com.atguigu.common.jwt;

/**
 * @Author panghl
 * @Date 2021/2/2 15:22
 * @Description TODO
 **/
public class MainTest {
    public static void main(String[] args) {
        String header = "{\n" +
                "  'typ': 'JWT',\n" +
                "  'alg': 'HS256'\n" +
                "}";
        String payload = "{\n" +
                "  \"sub\": \"1234567890\",\n" +
                "  \"name\": \"John Doe\",\n" +
                "  \"admin\": true\n" +
                "}\n";
        String signature  = JwtUtils.getJwtToken("1", header + payload+"secret");
        System.out.println(signature);

    }
}
